<template>
	<view class="recharge">
		<view class="title">充币</view>
		<uni-list :border="false">
		    <uni-list-item  title="USDT" rightText="选择币种" link></uni-list-item>
		</uni-list>
		<view class="type">
			<view>链名称</view>
			<view class="type-list">
				<text :class="{active: linkIndex===index}" v-for="(item,index) in links" @tap="linkToggle(index)">{{item}}</text>
			</view>
		</view>
		<view class="qrcode">
			<image src="../../static/img/qrcode.jpg" mode=""></image>
			<view class="tit">充币地址</view>
			<view class="link">kjasdkfjklasdjfjfakf123123kjaskdjfasdfasdkjh123jh12jhjk12h</view>
			<text class="btn">复制</text>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				linkIndex: 0,
				links: ['ERC20', 'TRC20', 'OMNI']
			}
		},
		methods: {
			linkToggle(e){
				this.linkIndex = e;
			}
		}
	}
</script>

<style>
.recharge {
	padding: 20rpx;
}
.recharge .title {
	font-size: 40rpx;
	margin-bottom: 20rpx;
}
.recharge .uni-list {
	margin-bottom: 40rpx;
}
.recharge .uni-list-item {
	background: #02C7EA ;
}
.recharge .uni-list-item >>> .uni-list-item__content-title,
.recharge .uni-list-item >>> .uni-list-item__extra-text {
	color: #fff;
}.recharge .uni-list-item >>> .uni-icons {
	color: #fff !important;
}
.recharge .type {
	margin-bottom: 20rpx;
}
.recharge .type-list {
	margin-top: 20rpx;
}
.recharge .type-list text {
	display: inline-block;
	border: 1px solid #111;
	border-radius: 10rpx;
	padding: 10rpx 20rpx;
	margin-right: 20rpx;
	font-size: 28rpx;
	margin-bottom: 20rpx;
}
.recharge .type-list .active {
	border-color: #1296DB;
	color: #1296DB;
}
.recharge .qrcode {
	text-align: center;
	background: linear-gradient(135deg, #02C7EA 0%, #A657F8 100%);
	padding: 50rpx 60rpx 40rpx;
	color: #fff;
}
.recharge .qrcode .tit {
	margin: 30rpx 0rpx 20rpx;
}
.recharge .qrcode image {
	width: 450rpx;
	height: 450rpx;
}
.recharge .qrcode .link {
	 word-wrap: break-word;
	 margin-bottom: 20rpx;
}
.recharge .qrcode .btn {
	display: inline-block;
	background: linear-gradient(90deg, #3BE899 0%, #21ADE7 100%);
	color: #fff;
	padding: 10rpx 40rpx;
	border-radius: 10rpx;
	font-size: 28rpx;
}
</style>
